<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app"></div>
<button onclick="setA()">set</button>
<script type="module">
  import { createApp, ref,watchEffect ,computed,effect} from './vue.esm-browser.js'

let age=ref(10)
let myAge=computed(()=>{
    console.warn("6666111");
    return age.value+20;
})
effect(()=>{
    app.innerHTML=`<h1>${age.value}</h1><h1>${myAge.value}</h1>`
    console.warn("myAGe",age.value,myAge.value)
})


setTimeout(()=>{
    age.value=new Date().getTime();
    console.warn("age",myAge)
},2000)
</script>
</body>
</html>
